home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Pascal / Applications / P4⁄Mac 2.0d4 / P4⁄Mac 2.0 info next >
Encoding:
Text File  |  1996-09-26  |  3.8 KB  |  84 lines  |  [TEXT/Rich]

  1. ********************************************************************
  2. *                                                                  *
  3. *                              P4/Mac                              *
  4. *                                                                  *
  5. *         Public Domain (plain) Pascal for the Macintosh           *
  6. *                                                                  *
  7. *    original program by by Steven Pemberton and Martin Daniels    *
  8. *            Mac adaption by Ingemar Ragnemalm 1994-1996           *
  9. *                                                                  *
  10. ********************************************************************
  11.  
  12. This is a Mac port of P4, public domain Pascal compiler and interpreter.
  13. It was compiled with Think Pascal.
  14.  
  15. WHO NEEDS IT?
  16. =============
  17.  
  18. Not a Mac application programmer, that's for sure. No, P4/Mac could be of interest
  19. for people in beginner programmer courses. Such courses (sadly) often teach "Vanilla
  20. Pascal", the nearly useless minimalist Pascal that P4/Mac implements. (It doesn't
  21. even have strings!) For those of you who still do, P4/Mac is a Public Domain
  22. alternative to buying a commercial compiler. That is, if you don't need all the
  23. extensions and libraries anyway.
  24.  
  25. However, once you want to make real Mac applications, I wholeheartedly recommend
  26. Think Pascal. Powerful language, fast resulting code, great debugger. Metrowerks
  27. CodeWarrior can also be an option, once they get their debugger a bit more powerful.
  28. (Yes, you might move to C or C++ later, but Pascal is the easiest language to
  29. start with. Too. Actually, I recommend Pascal and Object Pascal for any kind of
  30. serious programming. Easy to read, easy to support.)
  31.  
  32. FEATURES:
  33. =========
  34.  
  35. This is a free port of a Public Domain Pascal system. You get what you pay for.
  36. Even though it now runs on a Mac, note that the result:
  37.  
  38. • is an INTERPRETER! Don't expect high performance. If you want code that executes
  39. fast, use Think Pascal or CodeWarrior Pascal instead!
  40.  
  41. • has NO interface to the Mac toolbox, not even rudimentary drawing calls, so
  42. all you get is Vanilla Pascal, text-based. NOTHING MORE (until someone dives
  43. into the code and adds it, of course). Yes, sure it would be nice with some
  44. turtle graphics, and libraries, and some way to call toolbox routines…
  45.  
  46. HOW TO USE IT:
  47. ==============
  48.  
  49. 1) Write your Vanilla Pascal in a text editor, either the built-in one or a
  50. better one. (TeachText, BBedit, whatever that produces plain text files.)
  51. 2) Select "Run" from the Pascal menu. P4/Mac will prompt for a pcode file to
  52. save the intermediary code. Then it will run it.
  53.  
  54. If your program locks up, try command-period to abort it. If that doesn't work,
  55. command-alt-escape yourself out.
  56.  
  57. It is highly recommended that you use the name for the pcode file that P4/Mac
  58. suggests. If you do, P4/Mac can find the pcode automatically when you have the
  59. Pascal file open and select "Run pcode".
  60.  
  61. WHAT HAS BEEN IMPROVED?
  62. =======================
  63.  
  64. P4/Mac 2.0 is a lot better than version 1.0. The following things have happened:
  65.  
  66. • Compiler and interpreter integrated to one program.
  67. • Editor included.
  68. • Mac interface, multi-window and menus.
  69. • Console window instead of Think's Text window. This is faster and allows some
  70. new features.
  71.  
  72. WHAT COULD BE IMPROVED?
  73. =======================
  74.  
  75. Full Think Pascal sources are supplied. These sources are fairly close to the
  76. original P4 sources, though a lot more modified than they were in 1.0. Feel
  77. free to change them for whatever need. Some improvements I have in mind include:
  78. • Breaking down the file block.p to smaller parts, so we can turn debug on for it.
  79. • Adding features, making it able to do something more than just plain text.
  80. • Compiling is really slow. Can it be helped?
  81.  
  82.  
  83. See "Original source & doc" for more info on the original P4.
  84.